package demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import demo.entity.Mission;

public interface MissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Mission record);

    int insertSelective(Mission record);

    Mission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Mission record);

    int updateByPrimaryKey(Mission record);
    
    //我的任务，组长任务
    List<Mission> findAllBysuperiorid(Mission mission,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    
    int updateState(@Param("id")Integer id,@Param("state")Integer state);
    //经理任务
    List<Mission>findManagerMissionBySuperiorid(Mission mission,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
}